package com.wish.g01.base.service.impl;

import com.wish.g01.base.dto.RoomInfoDTO;
import com.wish.g01.base.entity.TbRoomInfo;
import com.wish.g01.base.mapper.TbRoomInfoMapper;
import com.wish.g01.base.service.ITbRoomInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wish.g01.base.vo.RoomInfoVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hao
 * @since 2022-05-24
 */
@Service
public class TbRoomInfoServiceImpl extends ServiceImpl<TbRoomInfoMapper, TbRoomInfo> implements ITbRoomInfoService {

    @Override
    public List<TbRoomInfo> searchRoomListByJZ() {
        return getBaseMapper().selectList(null);
    }

    @Override
    public List<TbRoomInfo> searchRoomListByFS() {
        return getBaseMapper().selectList(null);
    }

    @Override
    public List<TbRoomInfo> getList(TbRoomInfo tbRoomInfo) {
        return getBaseMapper().getList(tbRoomInfo);
    }

    @Override
    public List<RoomInfoVO> getFangTai(RoomInfoDTO roomInfoDTO) {

        return getBaseMapper().getFangTai(roomInfoDTO);
    }


}
